﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

//A simple GameObject with a single Sprite

namespace Imagine
{
    public class SimpleSprite : GameObject
    {
        public SimpleSprite(string texture)
        {
            m_sprite = new Sprite(texture);
        }

        #region Private_parts
                Sprite m_sprite;		 
        #endregion

        public override bool Update(Microsoft.Xna.Framework.GameTime time)
        {
            return base.Update(time);
        }

        public override bool Draw(Microsoft.Xna.Framework.GameTime time)
        {
            return m_sprite.Draw(time);
        }

        public Sprite Sprite
        {
            get { return m_sprite;      }
            set { m_sprite  = value;    }
        }
    }
}
